package com.mrtan.mapper;

import com.mrtan.bean.Account;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description 针对表【account(账号)】的数据库操作Mapper
 * @createDate 2023-12-06 13:49:27
 * @Entity com.mrtan.bean.Account
 */

public interface AccountMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Account record);

    int insertSelective(Account record);

    Account selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Account record);

    int updateByPrimaryKey(Account record);

    Account findByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    Account selectAccountByUsername(String username);
    List<Account> selectAllAccounts();
}
